import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'brage_platform_interface.dart';

/// An implementation of [BragePlatform] that uses method channels.
class MethodChannelBrage extends BragePlatform {
  /// The method channel used to interact with the native platform.
  final methodChannel = const MethodChannel('brage');

  @override
  Future<String?> getPlatformVersion() async {
    final version = await methodChannel.invokeMethod<String>('getPlatformVersion');
    return version;
  }

  @override
  setIOSBrage({required int brage}) {
    // TODO: implement setIOSBrage
     methodChannel.invokeMethod<String>('setIOSBrage',brage);
  }
}
